Skip to content

Conversation

jonatsm
Copy link
Member

@jonatsm jonatsm commented Oct 5, 2026

Scaffold backend

Adds backend/ as an npm workspace with a GraphQL server (Apollo Server 5) on port 3001.

  • TypeScript strict mode, compiled to dist/ for the VM
  • Placeholder health query only; the real schema is a separate issue
  • Scripts: dev (tsx watch), build, start, lint
  • ESLint matches the frontend; Prettier uses the existing root config
  • Root npm run build now builds both workspaces, new npm run dev:backend
  • AGENTS.md updated with backend commands and folder structure

graphql is pinned to v16 because Apollo Server 5 doesn't support v17.

How to test

  1. npm install, then npm run dev:backend
  2. Open http://localhost:3001 and run { health } → "ok"

Closes #29

Register /backend as an npm workspace and install
Apollo Server 5 with graphql 16. Add TS, tsx and Node
types as dev deps for building and running the
server in development.

Refs #29
Compile src/ to dist/ for Node 20+ with ES modules
and strict checking.

Refs #29
Start an Apollo Server on chosen port (3001 default)
using a placeholder schema with a single health query.
The real schema will be added in a different issue

Refs #29
Use the same ESLint setup as the frontend without the React
plugins.

Refs #29
Add a dev:backend root script and make the root script build
every workspace. How to start, build and run the backend is
added.

Refs #29
@jonatsm jonatsm added documentation Improvements or additions to documentation feat New feature backend labels Oct 5, 2026
@jonatsm jonatsm added this to the Partial submission 2 milestone Oct 5, 2026
@jonatsm jonatsm requested a review from a team as a code owner October 5, 2026 11:58
@jonatsm jonatsm linked an issue Oct 5, 2026 that may be closed by this pull request
4 tasks
Copy link
Member

@asgeija asgeija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, looks good.

@jonatsm jonatsm merged commit c200670 into main Oct 5, 2026
1 check passed
@jonatsm jonatsm deleted the 29-scaffold-the-backend-project branch October 8, 2026 10:00
Sign in to join this conversation on GitHub.
Labels
backend documentation Improvements or additions to documentation feat New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scaffold the backend project
2 participants